package com.skycong.hello77.common.baseadpater;

import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Window;

import com.skycong.hello77.activity.mydialogcar.MyProgressDialog_car;

/**
 * 基础的BaseAdapter类
 * Created by Kiki on 2018/6/19.
 */

public class BaseAdapter extends FragmentActivity {
    public BaseView baseView;
    private MyProgressDialog_car myProgressDialog_car;//网络请求的弹框

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        /**
         * ActivityInfo.SCREEN_ORIENTATION_PORTRAIT,竖屏
         * ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE,横屏
         */
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);//设置手机屏幕的方向
        requestWindowFeature(Window.FEATURE_NO_TITLE);//去掉带默认的标题栏

        getWindow().setBackgroundDrawable(null);//解决过度绘制导致的掉帧，也就是卡顿的情况


    }
}
